from ultralytics import YOLO
 

# 检测头
model = YOLO("ultralytics/cfg/models/v8/yolov8.yaml") # build a new model from scratch

 
# Train the model
results = model.train(data="mydata.yaml", epochs=150, imgsz=640)


#hyl
#hyl
#hyl